package cn.yyh.serviceOrder.client;

import cn.yyh.commons.utils.R;
import cn.yyh.serviceOrder.domain.PayBill;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;

/**
 * @author 杨永航
 * @version 1.0
 * @Title: PayBillClient
 * @Package: cn.yyh.serviceOrder.client
 * @date 2021/7/10
 */
@FeignClient(name = "service-pay")
@Component
public interface PayBillClient {

    @PostMapping("/servicePay/bill")
    String save(@RequestBody PayBill payBill,
                  @RequestHeader(required = true) String token);

    @PostMapping("/servicePay/bill/pay")
    String pay(@RequestBody PayBill payBill,
                      @RequestHeader(required = true) String token);
}
